module ecs {
    export class Utils{
        /** 交换两种对象类型 */
        public static Swap<T>(first: T, second: T){
            var temp = first;
            first = second;
            second = temp;
            return [first, second];
        }
    }
}